﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Yoda.Classes
{
	public class Tournament
	{
		public Tournament()
		{
			MatchNo = 0;
		}

		public string ID { get; set; }

		public string Name { get; set; }

		public int YearOf { get; set; }

		public string Place { get; set; }

		public int MatchNo { get; set; }

		public string GetNextMatchID()
		{
			MatchNo++;
			return String.Format("{0}-{1}", ID, MatchNo.ToString());
		}

	}
}
